<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!-- 使用c:标签需要添加本行代码 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
  <head>  
    <title>班级管理</title>
	<link rel="stylesheet" type="text/css" href="css/manager.css">
  </head>
  <body>
    <div id="user_top">
        班级管理
    </div><!-- user_top end -->
    <div style="width:760px; height:480px; overflow:auto;"><!-- 滚动条 -->
        <div id="user_mid">
        <table id="user_table" border="0" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                	<td>班级编号</td>
                	<td>班级名称</td>
                	<td>操作</td>
                	<td>操作</td>
                </tr>
      </thead>
            <c:forEach items="${entityList}" var="item">
                <tr>
                    <td>${item.class_id}</td>
                    <td>${item.class_name}</td>
                    <td><a href="<%=path%>/ActionServlet?method=updatePage&entity=Class&entityId=${item.class_id}
                    &userName=${item.class_name}">编辑</a></td>
                    <td><a href="<%=path%>/ActionServlet?method=delete&entity=Class&entityId=${item.class_id}">删除</a></td>
                </tr>
            </c:forEach> 
        </table>
    </div><!-- user_mid end -->
    </div>
    <div id="user_bottom">
        <h2><a href="<%=path%>/ActionServlet?entity=Class&method=insertPage">添加班级</a></h2>
    </div><!-- "user_bottom" end -->
  </body>
</html>